<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="contextPath" value="${pageContext.request.contextPath}" />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta name="viewport" content="user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, width=device-width" />
	<title>JTOON</title> 
</head>
<body>	
		
	<ul>
		<c:forEach items="${comicsList}" var="comics">
			<li>
				${comics.title} | ${comics.author} | ${comics.titleImg} | 
				<a href="${contextPath}/comicsManage?mode=3&cid=${comics.cid.id}">삭제</a> | 
				<a href="${contextPath}/episodeManage?mode=4&cid=${comics.cid.id}">에피소드 관리</a>
			</li>	   
		</c:forEach>	   
	</ul>
	
	<form action="${contextPath}/comicsManage" method="post"> 
		<input type="hidden" name="mode" value="1" /> 
		<div>
			만화이름 : <input type="text" id="title" name="title" />
		</div>
		<div>
			작가이름 : <input type="text" id="author" name="author" />
		</div>
		<div>
			타이틀이미지경로 : <input type="text" id="titleImg" name="titleImg" />
		</div>
		<input type="submit" value="전송" />
	</form>	
	
</body>
</html>